package com.mission.game.utils;

import com.mission.game.creategame.CreateGPSTask;
import com.mission.game.playgame.PlayGPSTask;

public class GPSTask extends Task {

	private int _lat, _lon;
	
	private static final long serialVersionUID = -7394401114132730838L;

	public GPSTask(String name, String description, Mission mission) {
		super(name, description, mission);
		_lat = 0;
		_lon = 0;
	}

	public GPSTask() {
		this("", "", null);
	}

	@Override
	public Class<?> getCreateClass() {
		return CreateGPSTask.class;
	}

	public void setLatitude(int lat) {
		_lat = lat;
	}

	public int getLatitude() {
		return _lat;
	}

	public void setLongitude(int lon) {
		_lon = lon;
	}

	public int getLongitude() {
		return _lon;
	}

	@Override
	public Class<?> getPlayClass() {
		return PlayGPSTask.class;
	}
}
